package com.ys.sboot.security.controller;

import com.ys.sboot.config.corecfg.exception.ResponseResult;
import com.ys.sboot.security.dto.UserInfo;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>@description:</p>
 *
 * @author yangshuang
 * @version 1.0
 * @date 18-5-11 下午9:19
 */
@RestController
@RequestMapping(value = "/auth")
public class AuthController {


    @GetMapping(value = "/getAuth")
    public ResponseResult<UserInfo> getAuth(UserInfo user) {
        ResponseResult<UserInfo> result = new ResponseResult<>();
        UserInfo userInfo = new UserInfo();
        userInfo.setPassword("123");
        result.setData(userInfo);
        return result;
    }
}
